package com.scwatch.core.repository;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.Programback;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Created by rh006 on 2017/7/25.
 */
public interface PragramBackDao extends Repository<Programback, Integer> {

    public Page<Programback> findAll(Specification<Programback> spec,
                                     Pageable pageable);

    public List<Programback> findAll(Specification<Programback> spec,
                                 Limitable limitable);

    public Programback findOne(Integer id);

    public Programback save(Programback bean);

    public void delete(Programback bean);

  /* public List<Program> findByStatus(int status);*/
}
